package org.example.baseinfo.util;


import com.fasterxml.jackson.databind.ObjectMapper;


/**
 * @BelongsProject: baseInfo
 * @BelongsPackage: org.example.baseinfo.util
 * @Author: gl504
 * @CreateTime: 2024-11-20 15:42
 * @Description: TODO
 * @Version: 1.0
 */
public class JsonUtil {
    private static ObjectMapper mapper = new ObjectMapper();

    public JsonUtil() {
    }

    public static String convertObject(Object object) {
        try {
            String var1 = mapper.writeValueAsString(object);
            return var1;
        } catch (Exception var5) {
            var5.printStackTrace();
            return null;
        } finally {
            ;
        }
    }


}
